type barType = (num: number) => number

// 调用签名
interface IBar {
    (num: number): number
    name: string
    age: number
}


const bar: IBar = (n) => {
    return n
}

bar.name = '123'
bar.age = 123
bar(123)
export { }